import {defineStore} from 'pinia'
import {ref, computed} from 'vue'
//侧边导航的收缩功能
export const useSidebarStore = defineStore('sidebar', () => {
    const isCollapse = ref(false)

    function handleCollapse() {
        this.isCollapse = !this.isCollapse;
    }

    return {isCollapse, handleCollapse}
});
